<template>
  <div class="app-container home">
    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <h4>测试工具展示区</h4>
      </el-col>
    </el-row>

    <!-- <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>单点地图组件</span>
          </div>
          <div>
            <map-component labelText="关键字搜索" :lng="119.335889" :lat="26.053462" :address="address" :addressListBoolean="addressListBoolean" @pickPoint="getPointInfo"></map-component>
          </div>
        </el-card>
      </el-col>
    </el-row> -->

    <!-- <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>多点地图组件</span>
          </div>
          <div>
            <map-mul-component></map-mul-component>
          </div>
        </el-card>
      </el-col>
    </el-row> -->

    <!-- <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>地图编辑器组件</span>
          </div>
          <div>
            <map-edit-component></map-edit-component>
          </div>
        </el-card>
      </el-col>
    </el-row> -->

    <el-row :gutter="20">
      <el-col :sm="24" :lg="24">
        <el-card class="box-card">
          <div slot="header" class="clearfix">
            <span>地图实时测量组件</span>
          </div>
          <div>
            <map-real-time-component></map-real-time-component>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import MapComponent from "@/components/MapComponent"
import MapMulComponent from "@/components/MapMulComponent"
import MapEditComponent from "@/components/MapEditComponent"
import MapRealTimeComponent from "@/components/MapRealTimeComponent"

export default {
  name: "Index",
  components: {
    MapComponent,
    MapMulComponent,
    MapEditComponent,
    MapRealTimeComponent
  },
  data() {
    return {
      // 版本号
      version: "3.8.8",
      address: "福州市鼓楼区",
      addressListBoolean: true
    };
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
    getPointInfo(point) {
      console.log(point);
      this.address = point.address;
      this.lng = point.lng;
      this.lat = point.lat;
    }
  }
};
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

